<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@product.errors.count, "error")%> prohibited this product from being saved: </h2>
      <ul>
        <% @product.errors.full_messages.each do |msg|  %>
          <li><%= msg%></li>
        <% end %>
      </ul>
    </div>
  <% end %>

 <div class="field">
   <%= f.label :title %><br/>
   <%= f.text_field :title %><br/>
</div>
 <div class="field">
   <%= f.label :description %><br/>
   <%= f.text_field :description %><br/>
</div>
 <div class="field">
   <%= f.label :image_url %><br/>
   <%= f.text_field :image_url %><br/>
</div>
 <div class="field">
   <%= f.label :price %><br/>
   <%= f.text_field :price %><br/>
</div>
<!--
 <div class="field">
   <%#= f.label :locale %><br/>
   <%#= f.select :locale, LANGUAGES %><br/>
</div>
-->
 <%#*<div class="field">%>
   <%#= f.label :active %><br/>
   <%#= f.select :active, [['True', true], ['False', false]] %><br/>
<%#*</div>%>
 <div class="actions">
   <%= f.submit %>
</div>

<% end %>
